package cheme.ProcessEditor.Table;

import org.eclipse.draw2d.Border;
import org.eclipse.draw2d.ToolbarLayout;
import org.eclipse.draw2d.geometry.Insets;
import org.eclipse.swt.graphics.Color;

import cheme.ProcessEditor.Figures.AbstractResizableGroupFig;

/*
 * Represents a series of fields, sized to fit it's contents.
 */
public class ListLineFig extends AbstractResizableGroupFig
{
	protected static final int insetSpacing = 1;
	
	public ListLineFig()
	{
		layout.setVertical(false);
		layout.setMinorAlignment(ToolbarLayout.ALIGN_CENTER);
	}
	
	protected void initPresentation()
	{
	}
	
	public void setPresentation(Color Background, Color foreground, Border border)
	{
		setBackgroundColor(Background);
		setForegroundColor(foreground);
		setBorder(border);
	}
	
	@Override
	public Insets getInsets()
	{
		return new Insets(insetSpacing);
	}
}